package com.visual.core.filter;

import com.visual.core.domain.BladeVisualMap;
import com.visual.util.filter.QueryWrapperContext;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.StringUtils;

/**
 * 关系型数据实体[BladeVisualMap] 查询条件对象
 */
@Slf4j
@Data
public class BladeVisualMapSearchContext extends QueryWrapperContext<BladeVisualMap> {


    /**
	 * 启用快速搜索
	 */
    @Override
	public void setQuery(String query)
	{
		 this.query=query;
		 if(!StringUtils.isEmpty(query)){
            this.getSearchCond().and( wrapper ->
                     wrapper.like("name", query)
            );
		 }
	}
}



